<template>
  <div>
    <ul>
      <li class="left" v-for="(va,ka) in list">
        <router-link :to="va.link" v-text="va.name"></router-link>
      </li>
      <li class="left">
        <span>
          hehehda
        </span>
      </li>
    </ul>
  </div>
</template>

<script>
  export default {
    name: 'Menu',
    data () {
      return {
        list: [
          {
            link: '/',
            name: '首页'
          },
          {
            link: '/hi',
            name: 'Hi'
          }
        ]
      }
    }
  }
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>

  h1, h2 {
    font-weight: normal;
  }

  ul {
    list-style-type: none;
    padding: 0;
  }
  ul:after{
    content: '';
    display: block;
    clear : both;
  }

  li {
    display: block;
    margin: 0 10px;
  }

  a {
    color: #42b983;
  }

</style>
